\hypertarget{convection1_8cpp}{
\subsection{Examples/05ConvDiffForced/convection1.cpp File Reference}
\label{convection1_8cpp}\index{Examples/05ConvDiffForced/convection1.cpp@{Examples/05ConvDiffForced/convection1.cpp}}
}


Forced Convection-\/Diffusion in 1D.  




\subsubsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Luis M. de la Cruz Salas \mbox{[} Sat Apr 19 18:47:23 BST 2008 \mbox{]}
\end{DoxyAuthor}
This code solves the next equation: \[ \frac{\partial \psi}{\partial t} + u \frac{\partial \psi}{\partial x} = \frac{\partial^2 \psi}{\partial x^2} \]. \begin{DoxyParagraph}{}
This equation is solved in the domain $ x \in [0,\infty] $. The velocity $ u $ is equal to 1.
\end{DoxyParagraph}
The equation can be solved using Upwind, Central Average (CDS) or QUICK schemes for the approximation of convective terms. CDS and QUICK can be used with {\ttfamily CDS\_\-CoDi} and {\ttfamily QUICK\_\-CoDi}, or with {\ttfamily CDS\_\-Hay} and {\ttfamily QUICK\_\-Hay}. The latter two are the deferred implementation from Hayase et al. 1992, which are more stable. \begin{DoxyParagraph}{Compiling and running}
Modify the variables BASE and BLITZ in the file {\ttfamily tuna-\/cfd-\/rules.in} according to your installation and then type the next commands: 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
\begin{DoxyVerb}
   % make
   % ./convection1 \end{DoxyVerb}
 The results are stored in {\ttfamily Data1} . 
\end{DoxyParagraph}


Definition in file \hyperlink{convection1_8cpp_source}{convection1.cpp}.

